# -*- mode: python; -*-

Import('env')

env.Append(
    CPPPATH = [
        'gtest',
        'gtest/include'
        ],
    )

if env.Bit('mac'):
    env.Append(
        FRAMEWORKS = [
            'Foundation',
            ],
        )

gtest_sources = [
    'gtest/src/gtest-test-part.cc',
    'gtest/src/gtest-death-test.cc',
    'gtest/src/gtest-filepath.cc',
    'gtest/src/gtest-port.cc',
    'gtest/src/gtest.cc',
    'gtest/src/gtest_main.cc',
    ]

testing_mac = [
    'platform_test_mac.mm',
    ]

if env.Bit('mac'):
    gtest_sources.extend(testing_mac)

env.ComponentLibrary('gtest', gtest_sources, COMPONENT_STATIC=False)
